﻿using System;
using System.Data;
using System.Reflection;

namespace Kenly.DBFramework.Gateway
{
    interface IParameterBuilder
    {
        IDataParameter CreateColumnParameter(object entity, PropertyInfo property);
        IDataParameter CreateColumnParameter(ColumnAttribute columnAttribute, string parameterName, object parameterValue);

        IDataParameter CreateProcedureParameter(object entity, PropertyInfo property);
        IDataParameter CreateProcedureParameter(ParameterAttribute parameterAttribute, string parameterName, object parameterValue);
    }
}
